Run Instance with admin user
2010/11/23 |
Start Instance from an image. |
|
[1] | Create keypair first. |
[root@frontend ~]# euca-add-keypair my-key > ~/.ssh/id_rsa-my-key [root@frontend ~]# chmod 600 ~/.ssh/id_rsa-my-key
|
[2] | Start Instance with "euca-run-instances" command. It's possible to make sure the field "eki-***" and others on the web controls. |
[root@frontend ~]# euca-run-instances -k my-key --kernel eki-A7E117B5 --ramdisk eri-10291911 emi-1C70159E RESERVATION r-384E0659 admin admin-default INSTANCE i-3EB907B6 emi-1C70159E 0.0.0.0 0.0.0.0 pending my-key 2010-11-23T11:52:52.807Z eki-A7E117B5 eri-10291911
|
[3] | After for a moment, Instance will have an IP address like follows. |
[root@frontend ~]# euca-describe-instances RESERVATION r-4591078D admin default INSTANCE i-2BBC056D emi-1C70159E 10.0.0.202 10.0.0.202 running my-key 0 m1.small 2010-11-23T12:39:01.773Z cluster01 eki-A7E117B5 eri-10291911 |
[4] | Login to instance with key that is made in [1]. |
[root@frontend ~]# ssh -i .ssh/id_rsa-my-key -l root 10.0.0.202 The authenticity of host '10.0.0.202 (10.0.0.202)' can't be established. RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.0.0.202' (RSA) to the list of known hosts. -bash-3.2# # just logined |
[5] | Input command like follows when you shutdown Instance. |
[root@frontend ~]# euca-terminate-instances i-2BBC056D INSTANCE i-50A20926 |